<?php
namespace Common\Model;
/**
 * 基类
 * @author liuyang
 * @since 20170417
 * @version v2.0
 */
use Think\Model;
class BaseModel extends Model {
	
    const IS_SHOW=1;
    const NOT_SHOW=0; 
    
    protected $tablePrefix = "tb_crm_";
    
    public function getFieldByList($list,$fields){
        $rst = array();
        foreach($fields as $key){
            $rst[$key]=$list[$key];
        }
        return $rst;
    }
}

?>
